import axios from '@/utils/utile'  //引入axios
export let login=params=>axios.post('/users/checkLogin',params)    //post方式,用户名
export let  addaccount=params=>axios.post('/users/add',params)     //post方式,添加用户名
export let  accountList=params=>axios.get('/users/list',{params})     //get方式,获取账户列表,key是params,一定不能变
export let  accountDel=params=>axios.get('/users/del',{params})     //删除用户
export let  batchDel=params=>axios.get('/users/batchdel',{params})     //批量删除用户
export let  Editaccount=params=>axios.post('/users/edit',params)     //修改账户
export let  Editpwd=params=>axios.post('/users/editpwd',params)     //修改密码
export let  checkOriginpwd=params=>axios.get('/users/checkoldpwd',{params})     //检查原来的密码
export let  getaccoundInfor=params=>axios.get('/users/accountinfo',{params})     //获取用户信息
export let checkToken=params=>axios.get('/users/checktoken',{params})     //检查用户的token是否过期
export let totalData=()=>axios.get('/order/totaldata',)     //报表接口


